<include file="public@header" />
<style>
th{
	font-size:14px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Stuff/index')}">{:lang('ADMIN_ROCK_INDEX')}</a></li>
			<li><a href="{:url('Stuff/add')}">{:lang('ADMIN_ROCK_ADD')}</a></li>
		</ul>
        <div>
       	<form  class="well form-search" action="{:url('Stuff/index')}" method="post">
        <label>{:lang('ROCK_NAME')}: 
        	<input type="text" name="rock_name" class="form-control" placeholder="请输入石材名称" value="{:input('request.goods_name')}" >
        </label>
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Stuff/index')}">清空</a>
        </form>
        </div>
		<form action="{:url('Stuff/index')}" method="post">
        	<php>$status = array('1' => '下架', '0' => '上架');</php>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
                        <th width="3%">ID</th>
						<th width="15%">{:lang('ROCK_NAME')}</th>
                        <th width="10%">{:lang('CATE_NAME')}</th>
                        <th width="10%">{:lang('CUBE_PRICE')}</th>
                        <th width="10%">{:lang('SQUARE_PRICE')}</th>
                        <th width="12%">{:lang('ROCK_IMG')}</th>
                        <th width="10%">{:lang('STATUS')}</th>
						<th width="15%">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="results" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.goods_name}</td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td>{$vo['sale']}</td>
						<td>{$vo['sale']}</td>
						<td>
							<a href="{:url('Goods/edit',array('id'=>$vo['id'],'type'=>$vo['type']))}">{:lang('EDIT')}</a>
							|	
							<a href="{:url('Goods/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
                        </td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>

	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
</body>
</html>